package com.city.domain.party;

import javax.persistence.*;
import java.util.Objects;

/**
 * @deprecation: 流动挂靠
 * @dmail: 398521613@qq.com
 * @author: L-H
 * @date: 2018-07-18 13:14
 */
@Entity
@Table(name = "party_fahu", schema = "city", catalog = "")
public class PartyFahu {
    private int id;//主键
    private String name;//姓名
    private String idCard;//身份证号码
    private String tellphone;//手机号
    private String branch;//流入党组织
    private String reason;//流动原因
    private String type;//流动类型
    private String sourceOccupation;//原来职业
    private String sourceBranchName;//原党组织名称
    private String sourcePerson;//原党组织联系人
    private String sourcePersonTell;//原党组织联系电话
    private String pExplain;//申请说明
    private String time;//申请时间
    private String updateTime;

    public String getpExplain() {
        return pExplain;
    }

    public void setpExplain(String pExplain) {
        this.pExplain = pExplain;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "id_card")
    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    @Basic
    @Column(name = "tellphone")
    public String getTellphone() {
        return tellphone;
    }

    public void setTellphone(String tellphone) {
        this.tellphone = tellphone;
    }

    @Basic
    @Column(name = "branch")
    public String getBranch() {
        return branch;
    }

    public void setBranch(String branch) {
        this.branch = branch;
    }

    @Basic
    @Column(name = "reason")
    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Basic
    @Column(name = "type")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Basic
    @Column(name = "source_occupation")
    public String getSourceOccupation() {
        return sourceOccupation;
    }

    public void setSourceOccupation(String sourceOccupation) {
        this.sourceOccupation = sourceOccupation;
    }

    @Basic
    @Column(name = "source_branch_name")
    public String getSourceBranchName() {
        return sourceBranchName;
    }

    public void setSourceBranchName(String sourceBranchName) {
        this.sourceBranchName = sourceBranchName;
    }

    @Basic
    @Column(name = "source_person")
    public String getSourcePerson() {
        return sourcePerson;
    }

    public void setSourcePerson(String sourcePerson) {
        this.sourcePerson = sourcePerson;
    }

    @Basic
    @Column(name = "source_person_tell")
    public String getSourcePersonTell() {
        return sourcePersonTell;
    }

    public void setSourcePersonTell(String sourcePersonTell) {
        this.sourcePersonTell = sourcePersonTell;
    }



    @Basic
    @Column(name = "time")
    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Basic
    @Column(name = "update_time")
    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PartyFahu partyFahu = (PartyFahu) o;
        return id == partyFahu.id &&
                Objects.equals(name, partyFahu.name) &&
                Objects.equals(idCard, partyFahu.idCard) &&
                Objects.equals(tellphone, partyFahu.tellphone) &&
                Objects.equals(branch, partyFahu.branch) &&
                Objects.equals(reason, partyFahu.reason) &&
                Objects.equals(type, partyFahu.type) &&
                Objects.equals(sourceOccupation, partyFahu.sourceOccupation) &&
                Objects.equals(sourceBranchName, partyFahu.sourceBranchName) &&
                Objects.equals(sourcePerson, partyFahu.sourcePerson) &&
                Objects.equals(sourcePersonTell, partyFahu.sourcePersonTell) &&
                Objects.equals(pExplain, partyFahu.pExplain) &&
                Objects.equals(time, partyFahu.time) &&
                Objects.equals(updateTime, partyFahu.updateTime);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, name, idCard, tellphone, branch, reason, type, sourceOccupation, sourceBranchName, sourcePerson, sourcePersonTell, pExplain, time, updateTime);
    }
}
